cqjs.component('floatField', {
    template: `
        <el-input-number
            style='width:100%'
            v-model="data.data[$props.field.name]"
            @change="handleChange"
            :precision="$props.precision"
            :placeholder="$props.placeholder"/>
    `,
    props: { field: null, data: null, placeholder: null, precision: { type: Number, default: 2 } },
    methods: {
        handleChange(v) {
            this.data.dirty[this.field.name] = v;
        }
    },
    created() {
        console.log('number', this.precision);
    }
});